<article class="module width_3_quarter">
  <header>
    <h3 class="tabs_involved">邮件模板</h3>
  </header>
  <div class="tab_container" >
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
      
      	 <tr>
            <th width="80px;">选择</th>
            <td >
            <select id="mail_templates" onchange="AD.getEmilTemp(this.value)">
            	<option>请选择</option>
                {{foreach from=$templates item=list key=key}}
                <option value="{{$list.code}}">{{$list.subject}}
                {{/foreach}}
            </select>
            <input type="submit" class="alt_btn" value="删除" onclick="AD.delEmilTemp()">
            </td>
          </tr>
          <tr>
            <th width="80px;">Code</th>
            <td ><input type="text" id="tmp_code"/></td>
          </tr>
         
          <tr>
            <th width="80px;">主题</th>
            <td ><input type="text" id="tmp_subject"/></td>
          </tr>
          
          <tr>
            <th width="80px;">内容</th>
            <td ><textarea id="tmp_content"  name="tmp_content" class="ckeditor"></textarea></td>
          </tr>
         <tr>
            
            <td  colspan="2" align="center">
            <input type="hidden" value="0" id="t_id" />
            <input type="submit" class="alt_btn" value="保存" onclick="AD.setEmilTemp()">
           
          </tr>
      </table>
    </div>
    <!-- end of #tab1 --> 
    
  </div>
  <!-- end of .tab_container --> 
  
</article>